<?php
class AdminController extends Zend_Controller_Action
{
    /**
     * @var Managers
     */
    protected $_manager;
    protected $_managerAreas;
    
    public function init()
    {
		
       $layout = Zend_Layout::getMvcInstance();
       $layout->setLayout('admin');
       $this->_manager = new Managers\Housing();
       $this->_managerAreas = new Managers\Areas();

       
    }

    public function indexAction()
    {
      // $this->view->index = 1;
      $this->view->items = $this->_manager->getNewNotPub();
      $this->view->areas = $this->_managerAreas->getAll();
      $this->view->typehousing = new Helper_TypeHousing;

      //echo"<pre>";
      //print_r($this->view->items);
      //echo"</pre>";
    }
    public function usersAction()
    {

    }


    public function moderationAction(){
        
    }


}

